Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve deps #431

Merged
merged 4 commits into from
Feb 18, 2025
Merged

Improve deps #431

merged 4 commits into from
Feb 18, 2025

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Feb 18, 2025

  • Bump some of the generic deps
  • Add the GetSecureBoot method so we can drop the efi dep
  • Remove earthly stuff

 - Bump some of the generic deps
 - Add the GetSecureBoot method so we can drop the efi dep
 - Remove earthly stuff

Signed-off-by: Itxaka <[email protected]>
@Itxaka Itxaka requested a review from a team February 18, 2025 13:22

require (
github.com/avast/retry-go v3.0.0+incompatible
github.com/containerd/containerd v1.7.25
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was just moved from below into the main require as we had 2 require stanzas for some reason

github.com/gofrs/uuid v4.4.0+incompatible
github.com/google/go-tpm v0.9.3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Signed-off-by: Itxaka <[email protected]>
@@ -348,3 +350,31 @@ func Copy(src, dst string) error {
}
return nil
}

// GetSecureboot checks if secureboot is enabled in the system by checking the expected efivar
func GetSecureboot() bool {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually checking the Efivar for Secureboot support saves us from depending on go-uefi. we only used this part and checking a single efi var is simple

Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 11.98%. Comparing base (db7878b) to head (edabe8f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/utils/common.go 0.00% 24 Missing ⚠️
pkg/state/steps_uki.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
- Coverage   12.13%   11.98%   -0.16%     
==========================================
  Files          11       11              
  Lines        1804     1828      +24     
==========================================
  Hits          219      219              
- Misses       1568     1592      +24     
  Partials       17       17              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Itxaka Itxaka merged commit a597656 into main Feb 18, 2025
6 checks passed
@Itxaka Itxaka deleted the improve_deps branch February 18, 2025 13:41
@@ -12,7 +12,6 @@ import (
"syscall"
"time"

"github.com/foxboron/go-uefi/efi"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants